import request from '@/utils/request'
export function addtopicType(data) {
  return request({
    url: '/topicType',
    method: 'post',
    data: data
  })
}
export function gettopicTypeListByCourse(courseId) {
  return request({
    url: '/topicType/course/'+courseId,
    method: 'get',
  })
}
export function deletetopicType(id) {
  return request({
    url: '/topicType/'+id,
    method: 'delete',
  })
}
export function edittopicType(data) {
  return request({
    url: '/topicType',
    method: 'put',
    data: data
  })
}
//获取单个课程
export function gettopicType(id) {
  return request({
    url: '/topicType/' + id,
    method: 'get'
  })
}



